﻿package org.kisekiproject.components.ui {
	import flash.display.MovieClip;

	/**
	 * Movieclip with states.
	 */
	public class StatefulMovieClip extends MovieClip
	{
		private var _stateManager:MovieClipStateManager;

		public function StatefulMovieClip()
		{
			super();
			
			_stateManager=new MovieClipStateManager(this);
		}

		public function set currentState(value:String):void
		{
			_stateManager.currentState=value;
		}

		public function installState(value:String):void
		{
			_stateManager.installState(value);
		}
	}
}